package com.clei.utils.container;

/**
 * 单值
 *
 * @param <T> t
 * @author Y
 * @date 2022-12-15
 */
public final class SingleValue<T> {

    /**
     * t
     */
    private T t;

    public SingleValue() {
    }

    public SingleValue(T t) {
        this.t = t;
    }

    public static <T> SingleValue<T> of(T t) {
        return new SingleValue<>(t);
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}

